const routes = {
    uiRoutes: [
        {
            id: 'view',
            name: '视图容器',
            open: false,
            pages: [{
                id: 'View',
                component: require('./pages/View'),
                title: 'View',
            }, {
                id: 'JDScrollView',
                component: require('./pages/JDPullToRefresh/PullScrollView'),
                title: 'JDScrollView',
            }, {
                id: 'ListView',
                component: require('./pages/JDPullToRefresh/PullListView'),
                title: 'ListView',
            }, {
                id: 'FlatList',
                component: require('./pages/JDPullToRefresh/PullFlatList'),
                title: 'FlatList',
            },
            {
                id: 'ScrollViewDemo',
                component: require('./pages/JDPullToRefresh/ScrollViewDemo'),
                title: 'ScrollViewDemo',
            },
            {
                id: 'JDScrollTabView',
                component: require('./pages/JDTabView'),
                title: 'JDScrollTabView',
            },
            {
                id: 'JDIndexFlatList',
                component: require('./pages/JDIndexFlatList'),
                title: 'JDIndexFlatList',
            },
            ],

        },
        {
            id: 'content',
            name: '基础内容',
            open: false,
            pages: [{
                id: 'JDText',
                component: require('./pages/JDText'),
                title: 'JDText',
            }, {
                id: 'JDTouchable',
                component: require('./pages/JDTouchable'),
                title: 'JDTouchable',
            }],

        },
        {
            id: 'form',
            name: '表单组件',
            open: false,
            pages: [{
                id: 'JDSwitch',
                component: require('./pages/JDSwitch'),
                title: 'JDSwitch',
            }, {
                id: 'JDRadio',
                component: require('./pages/JDRadio'),
                title: 'JDRadio',
            }, {
                id: 'JDbutton',
                component: require('./pages/JDbutton'),
                title: 'JDbutton',
            },],

        },
        {
            id: 'nav',
            name: '导航',
            open: false,
            pages: [{
                id: 'JDRouter',
                component: require('./pages/JDRouter'),
                title: 'JDRouter',
            }],

        },
        {
            id: 'media',
            name: '媒体组件',
            open: false,
            pages: [{
                id: 'JDImage',
                component: require('./pages/JDImage'),
                title: 'JDImage',
            },{
                id: 'JDAudio',
                component: require('./pages/JDAudioRecorder').default,
                title: 'JDAudio',
                nativeDepend: true,
                desc: '音频'
            }],

        },
        {
            id: 'other',
            name: '其他组件',
            open: false,
            pages: [{
                id: 'JDViewPager',
                component: require('./pages/JDViewPager'),
                title: 'JDViewPager',
            }, {
                id: 'JDSwiper',
                component: require('./pages/JDSwiper/index'),
                title: 'JDSwiper',
            }, {
                id: 'JDTextCarousel',
                component: require('./pages/JDTextCarousel'),
                title: 'JDTextCarousel',
            }, {
                id: 'JDPicker',
                component: require('./pages/JDPicker'),
                title: 'JDPicker',
            }, {
                id: 'JDDialog',
                component: require('./pages/JDDialog'),
                title: 'JDDialog',
            }, {
                id: 'JDNetworkErrorView',
                component: require('./pages/JDNetworkErrorView'),
                title: 'JDNetworkErrorView',
            }, {
                id: 'JDNoDataView',
                component: require('./pages/JDNoDataView'),
                title: 'JDNoDataView',
            }, {
                id: 'JDPasswordDialog',
                component: require('./pages/JDPasswordDialog'),
                title: 'JDPasswordDialog',
            }, {
                id: 'JDPopupWindow',
                component: require('./pages/JDPopupWindow'),
                title: 'JDPopupWindow',
            }, {
                id: 'JDMarquee',
                component: require('./pages/JDMarquee'),
                title: 'JDMarquee',
            }, {
                id: 'JDCountDown',
                component: require('./pages/JDCountDown'),
                title: 'JDCountDown',
            }],

        },
    ],
    apiRoutes: [
        {
            id: 'base',
            name: '基础',
            open: false,
            pages: [{
                id: 'Platform',
                component: require('./pages/Platform'),
                title: 'Platform',
            }, {
                id: 'JDJumping',
                component: require('./pages/JDJumping'),
                title: 'JDJumping',
            }, {
                id: 'JDLocation',
                component: require('./pages/JDLocation'),
                title: 'JDLocation',
                nativeDepend: true,
            }, {
                id: 'JDNativeSystem',
                component: require('./pages/JDNativeSystem'),
                title: 'JDNativeSystem',
                nativeDepend: true,
                desc: '原生方法'
            }],

        },
        {
            id: 'page',
            name: '界面',
            open: false,
            pages: [{
                id: 'JDDevice',
                component: require('./pages/JDDevice'),
                title: 'JDDevice',
            }, {
                id: 'Toast',
                component: require('./pages/JDToast'),
                title: 'Toast',
            }],

        }
    ]
}


module.exports = routes;
